package com.lc.user.service.impl;

import com.lc.user.service.CodeFeign;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
public class CodeFeignFallback implements CodeFeign {
    @Override
    @GetMapping("/validate/{email}/{code}")
    public int validateCode(@PathVariable("email") String email, @PathVariable("code") String code){
        return 1;
    }
}
